package com.woniu.park.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cxb
 * @since 2020-09-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sp_coupon")
public class Coupon implements Serializable {

    private static final long serialVersionUID=1L;
    @TableId(value = "coupon_id", type = IdType.AUTO)
    private Integer couponId;

    /**
     * 代金券类型
     */
    private Integer couponType;

    /**
     * 使用代金券的条件
     */
    private Integer couponCondition;

    /**
     * 代金券可抵扣的面值
     */
    private Integer couponDiscount;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 代金券数量
     */
    private Integer couponNumber;


}
